Repository navigation
Conversation
…glei#8316) Zero behavior change — the pattern is byte-identical to the inline literal it replaces (verified against the real tag shapes the kernel emits, with and without time=). KDD ranxianglei#2 requires angle brackets in ACP tag sequences to be hex-escaped in source files, because content sanitizers upstream of git push mangle literal tags; kernel/src/ccr.ts already uses this exact construction for its own LEADING_TAG_RE. Extracted to a named module constant so the escape stays readable.
[bot] 🏷 Reviewed PR #8318 (fixes #8316) — the fix is correct, well-tested, and merge-ready pending CI green. I did a code-level review (root cause, regex, test, regression surface) plus CI; I did not run the full suite locally (that's CI's job per repo discipline). Root cause confirmed. Egress table rows store kernel output with the rendered Fix is correct and minimal. It strips the leading rendered tag from the server row before the compare: On reusing the kernel's Test has teeth. New case ( No regression surface. The strip only affects the probe's log-compare; recorded bytes, served bytes, and the flow are untouched. The probe is non-fatal (server bytes win) regardless. CI (head Two notes for the owner (non-blocking):
Verdict: code correct and merge-ready; the only gates are CI finishing green (6 test lanes running, none failing) and human review/merge (I don't merge). 结构化八问
|
What broke
With egress on, every id-carrying plugin session logged a divergence warning every round, even when the client changed nothing. The probe compared server rows, which hold kernel output with the rendered
<acp ...>mNNNNN</acp>tag ahead of the body, against the client's untagged text. The tag alone made every sampled row count as diverged, so a real divergence was indistinguishable from the noise.What changed
egressAuthorityProbestrips the leading rendered acp tag from the server row text before the length and exact-text compare. The body compare is unchanged, so a real edit under a stable id still logs.How verified
tests/egress-authority-ladder.test.ts: 8/8 pass.npm run typecheck: clean.Fixes #8316